<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class System_model extends CI_Model
{
	public function __construct()
	{
		parent::__construct();
	}

	function get_parameters()
	{
            $parameter = $this->db->query('CALL uspSelParameterById(0)')->result_array();
            return $parameter;
	}

        function get_messagecode($id)
	{
            $message_code = $this->db->query('CALL uspSelMessageCodeById('.$id.')')->result_array();
            return $message_code;
	}

        function get_defaultpage($userid)
        {
			$pages = $this->db->query('CALL uspSelDefaultPage('.$userid.')')->result_array();
            return $pages;
        }
        
        function get_menu($menutype)
        {
            $menu = $this->db->query('CALL uspSelMenu('.$menutype.')')->result_array();
            return $menu;
        }
        
		function get_securemenu($userid, $menutype, $classname, $methodname)
        {
			$menu = $this->db->query("CALL uspSelSecureMenuByUserId('$userid','$menutype','$classname','$methodname')")->result_array();
            return $menu;
        }
        
}

/* End of file System_model.php */
/* Location: ./application/models/System_model.php */
